﻿#include "entities.h"


Rectangle::Rectangle(int x, int y, int w, int h) : x(x), y(y), width(w), height(h)
{
}


Recognition::Recognition(Rectangle r, std::string t, double o):rect(r),tag(t),probability(o)
{
}


Record::Record(std::string f) : filename(f)
{
}

Record::Record(std::vector<nlohmann::json> r)
{
	reco_list = r;
}


void Record::addRecognition(Recognition r)
{
	reco_list.push_back(r);
}

